From: | Rob Hutchinson |
Date: | 18 Sep 99 at 15:57:49 |
Subject: | Re: Program Order |
Hello Sandy
> The problem is that one of the functions makes use of an array that is
> dim'ed in this subroutine (after the function is declared). Obviously it
> is dim'ed when the
> function is called, but the Blitz compiler does not realise this, and
> won't compile the program. Is there a workaround for this, or will I just
> have to do some
> major code reorganising? I thought possibly that this was a problem with
> the array not being SHARED, but I don't know how to do this with arrays.
If your on about what I think you are..
The easiest way to do it is like this:
Dim Array$(1)
Function Blah{blah2}
SHARED Array$()
;...Blah....
Function Return Blah
End Function
JSR Subby
;.
;...
;.....
.Subby:
Dim Array$(New_Val)
RTS
;-----------------------
This worked fine with my scripting language.
Rob,
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie